<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="../dist/fxtpl.js"></script>

<title>Fxtpl</title>
<style>
body{ line-height: 1.5em;}
</style>
</head>

<body>
>> IMG标签前加“tpl:”标记
<div id="myTemplate">
    <tpl:img src="<!--[$src]-->" />
</div>

<script>
var data = {
    src: 'http://www.baidu.com/img/bdlogo.gif'
};
Fxtpl.render('myTemplate', data);
</script>
</body>
</html>
